Add stub for new libglnx tmpfile API, port simpler callers to it
authorColin Walters <walters@verbum.org>
Wed, 17 May 2017 15:02:56 +0000 (11:02 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 23 May 2017 14:06:24 +0000 (14:06 +0000)
commite99777e8d23eb59bc6f22cad023fa4d6ce56bbce
treedb336bd57e978db69f95d8a8f07eb90f9e582e65
parentdb00c9591f7425c9098f06b818f6c3b4b7c2f352
Add stub for new libglnx tmpfile API, port simpler callers to it

It's hard right now to do a full port to the new libglnx tmpfile
API since there are complex cases in the commit path which deal
with symlinks as well.

Let's make things more gradual by introducing the important part (struct with
autocleanup) here in libotutil, port what we can. This will make a future
complete port easier.

Closes: #871
Approved by: jlebon
src/libostree/ostree-fetcher-curl.c
src/libostree/ostree-repo-checkout.c
src/libotutil/ot-fs-utils.c
src/libotutil/ot-fs-utils.h
src/ostree/ot-remote-cookie-util.c